package com.scse.bms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Title: UserHeadImgVO
 * @Author: 吴赠禹
 * @Date: 2021/3/1 19:59
 * @Version: 1.0
 * @Description: 用户头像视图类
 */

@Getter
@Setter
@ToString
@TableName("t_user_head_img")
public class UserHeadImgVO {

    /**
     * 想要什么字段就添加到这个类
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer headImgId;
    private String src;
    /**
     * 使用改头像的用户总数
     */
    private Integer userNum;
    private String uploadTime;

    public UserHeadImgVO() {}

    public UserHeadImgVO(String src, String uploadTime) {
        this.src = src;
        this.uploadTime = uploadTime;
    }

}
